<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!-- 员工编辑区 -->
<div>
	<form class="form-horizontal" id="staff_form" action="/admin/menu/addMenu.do" method="post">	
		<div class="row">
			<div class="col-xs-6">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-3 no-padding-right"
						for="staff_code">
						账号:
					</label>
					<div class="col-xs-12 col-sm-9">
						<div class="clearfix">
							<input type="text" name="staff_code" id="staff_code"
								class="col-xs-12 col-sm-10 {required:true}" />
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-3 no-padding-right"
						for="password">
						密码:
					</label>
					<div class="col-xs-12 col-sm-9">
						<div class="clearfix">
							<input type="text" name="password" id="password"
								class="col-xs-12 col-sm-10 {required:true}" />
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-3 no-padding-right"
						for="staff_name">
						名称:
					</label>
					<div class="col-xs-12 col-sm-9">
						<div class="clearfix">
							<input type="text" name="staff_name" id="staff_name"
								class="col-xs-12 col-sm-10 {required:true}" />
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-3 no-padding-right"
						for="phone">
						电话:
					</label>
					<div class="col-xs-12 col-sm-9">
						<div class="clearfix">
							<input type="text" name="phone" id="phone"
								class="col-xs-12 col-sm-10 {required:true}" />
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-3 no-padding-right"
						for="status">
						状态:
					</label>
					<div class="col-xs-12 col-sm-9">
						<div class="clearfix">
							<select class="col-xs-12 col-sm-10" id="status" style="height: 34px;" name="status">
								<option value="0" selected="selected" >有效</option>
								<option value="1">无效</option>
							</select>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-3 no-padding-right"
						for="sex">
						性别:
					</label>
					<div class="col-xs-12 col-sm-9">
						<div class="clearfix">
							<select class="col-xs-12 col-sm-10" id="sex" style="height: 34px;" name="sex">
								<option value="0" selected="selected" >女</option>
								<option value="1">男</option>
							</select>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-3 no-padding-right"
						for="organization_id">
						所属组织:
					</label>
					<div class="col-xs-12 col-sm-9">
						<div class="clearfix">
							<div class="input-group col-xs-12 col-sm-10">
								<input class="form-control input-mask-product" type="text" name="organization_name" id="organization_name" />
								<span class="input-group-addon">
									<a href="javascript:void(0)" onclick="showOrganizationSelectWindow()"  >
										<i class="ace-icon fa fa-search"></i>
									</a>
								</span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<input id="organization_id" name="organization_id" type="hidden">
		<input id="staff_id" name="staff_id" type="hidden">
		<div class="clearfix form-actions">
			<div class="col-md-offset-3 col-md-9">
				<button onclick="editStaff()" class="btn btn-info" type="button">
					<i class="ace-icon fa fa-check bigger-110"></i>
					提交
				</button>
				&nbsp; &nbsp; &nbsp;
				<button class="btn" onclick="pageToggle()" type="reset">
					<i class="ace-icon fa fa-undo bigger-110"></i>
					取消返回列表
				</button>
			</div>
		</div>
	</form>
</div>